# Django settings for src project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = ''           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = ''             # Or path to database file if using sqlite3.
DATABASE_USER = ''             # Not used with sqlite3.
DATABASE_PASSWORD = ''         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

DIRS = {}
DIRS["BASE_PROJECT_ROOT"] = 'D:/Documents/Freymam/Tesis/6-Aplicacion/iasna/'
DIRS["PROJECT_ROOT"] = DIRS["BASE_PROJECT_ROOT"] + 'src/'
DIRS["PROJECT_URL"] = 'http://127.0.0.1:8000/'
DIRS["PROJECT_MEDIA_ROOT"] = DIRS["PROJECT_ROOT"] + 'raws/'
DIRS["PROJECT_MEDIA_URL"] = 'http://localhost/iasna/'

DIRS["TEAMQUEST_ROOT"] = DIRS["PROJECT_ROOT"] + 'iasna_teamquest/'
DIRS["TEAMQUEST_URL"] = DIRS["PROJECT_URL"] + 'teamquest/'
DIRS["TEAMQUEST_MEDIA_ROOT"] = DIRS["TEAMQUEST_ROOT"] + 'raws/'

DIRS["REFLEXION_ROOT"] = DIRS["PROJECT_ROOT"] + 'iasna_reflexion/'
DIRS["REFLEXION_URL"] = DIRS["PROJECT_URL"] + 'reflexion/'
DIRS["REFLEXION_MEDIA_ROOT"] = DIRS["REFLEXION_ROOT"] + 'raws/'

DIRS["RECOMMENDATION_ROOT"] = DIRS["PROJECT_ROOT"] + 'iasna_recommendation/'
DIRS["RECOMMENDATION_URL"] = DIRS["PROJECT_URL"] + 'recommendation/'
DIRS["RECOMMENDATION_MEDIA_ROOT"] = DIRS["RECOMMENDATION_ROOT"] + 'results/'

DIRS["CORE_ROOT"] = DIRS["PROJECT_ROOT"] + 'iasna_core/'
DIRS["CORE_URL"] = DIRS["PROJECT_URL"] + 'iasna/'
DIRS["CORE_MEDIA_ROOT"] = DIRS["CORE_ROOT"] + 'analysis/raws/'
DIRS["CORE_RESULTS_ROOT"] = DIRS["CORE_ROOT"] + 'analysis/results/'
DIRS["CORE_MEDIA_URL"] = DIRS["PROJECT_MEDIA_URL"] + 'graph_img/'

DIRS["DOCS_MEDIA_URL"] = DIRS["PROJECT_MEDIA_URL"] + 'iasna_docs/'
DIRS["TEMPLATES_MEDIA_URL"] = DIRS["PROJECT_MEDIA_URL"] + 'myTemplates/'
DIRS["CORE_GRAPH_IMG_ROOT"] = DIRS["BASE_PROJECT_ROOT"] + 'raws/graph_img/'
DIRS["CORE_GRAPH_IMG_URL"] = DIRS["PROJECT_MEDIA_URL"] + 'graph_img/'

#user variables

MODULES = {"Iasna Core": {"status": "inactive", "short_name": "iasna", "url": "/iasna/"}, 
           "Iasna Teamquest": {"status": "inactive", "short_name": "teamquest", "url": DIRS["TEAMQUEST_URL"]},
           "Iasna Reflexion": {"status": "inactive", "short_name": "reflexion", "url": DIRS["REFLEXION_URL"]},
           "Iasna Recommendation": {"status": "inactive", "short_name": "recommendation", "url": DIRS["RECOMMENDATION_URL"]},
           }

ACTOR_INDICATORS = {"Actor answers": {"status": "inactive", "url": "/reflexion/indicator/actor_answers"}, 
                    "Actor coordination": {"status": "inactive", "url": "/reflexion/indicator/actor_coordination"}}
NETWORK_INDICATORS = {"Network answers": {"status": "inactive", "url": "/reflexion/indicator/network_answers"},
                      "Network coordination": {"status": "inactive", "url": "/reflexion/indicator/network_coordination"}, 
                      "Optional collaborative activity function": {"status": "inactive", "url": "/reflexion/indicator/network_optionalcaf"},
                      "Collaborative activity function": {"status": "inactive", "url": "/reflexion/indicator/network_caf"}, 
                      "Collaboration function": {"status": "inactive", "url": "/reflexion/indicator/network_cf"}}
ALL_INDICATORS = {}
for key, value in ACTOR_INDICATORS.items():
    ALL_INDICATORS[key] = value
for key, value in NETWORK_INDICATORS.items():
    ALL_INDICATORS[key] = value

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"


# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'w)f-k$pxy4580o_u^#2hlm8ng3znhwbs!s$$a3ycd+$_pe2gzp'

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
)

ROOT_URLCONF = 'src.urls'

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
    DIRS["PROJECT_ROOT"],
    DIRS["PROJECT_ROOT"] + 'iasna_teamquest/templates/',
    DIRS["PROJECT_ROOT"] + 'iasna_core/templates/',
    DIRS["PROJECT_ROOT"] + 'iasna_reflexion/templates/',
    DIRS["PROJECT_ROOT"] + 'iasna_recommendation/templates/',
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'src.iasna_teamquest',
    'src.iasna_core',
    'src.iasna_reflexion',
    'src.iasna_recommendation',
)
